package com.zl.payment.service;

import com.zl.payment.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 黄军鹏
 * @since 2020-07-17
 */
public interface IMonthBillService extends IService<MonthBill> {

/*List<CreditCardMessage> getCardsByDate();*/

ConsumptionBill getConsumptionBill(String creditCardId, String month);

List<InstallmentBill> getInstallments(String creditCardId, String  month);

HistoryBill getHistoryBill(String creditCardId);

boolean generatorMonthBill(String creditCardId);

MonthBill getMonthBill(String creditCardId);

BigDecimal getTotalAmount(MonthBill monthBill);

BigDecimal getInstallmentAmount(MonthBill monthBill);

BigDecimal restAmount(MonthBill monthBill,BigDecimal actuallyInstallmentAmount);

BigDecimal leastAmont(MonthBill monthBill);

List<MonthBill> overdueBills();

boolean transforOverdueBill(List<MonthBill> monthBills);

}
